<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
        <head>
          <title>akka.testkit.EventFilter</title>
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link type="text/css" media="screen" rel="stylesheet" href="../../lib/template.css" />
      <script type="text/javascript" src="../../lib/jquery.js"></script>
      <script type="text/javascript" src="../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../lib/template.js"></script>
      <script type="text/javascript" src="../../lib/tools.tooltip.js"></script>
    
        </head>
        <body class="value">
      <div id="definition">
        <a title="Go to companion" href="EventFilter.html"><img src="../../lib/object_to_class_big.png" /></a>
        <p id="owner"><a name="akka" class="extype" href="../package.html">akka</a>.<a name="akka.testkit" class="extype" href="package.html">testkit</a></p>
        <h1><a title="Go to companion" href="EventFilter.html">EventFilter</a></h1>
      </div>

      <h4 class="signature" id="signature">
      <span class="kind">object</span>
      <span class="symbol">
        <span class="name">EventFilter</span>
        
        <span class="result"> extends AnyRef</span>
      </span>
      </h4>
      
          <div class="fullcommenttop" id="comment"><div class="comment cmt"><p>Facilities for selectively filtering out expected events from logging so
that you can keep your test run’s console output clean and do not miss real
error messages.</p><p><b>Also have a look at the <a name="akka.testkit" class="extype" href="package.html">testkit</a> package object’s <code>filterEvents</code> and
<code>filterException</code> methods.</b></p><p>The source filters do accept <code>Class[_]</code> arguments, matching any
object which is an instance of the given class, e.g.</p><pre>
EventFilter.info(source = classOf[MyActor]) // will match Info events from any MyActor instance
</pre><p>The message object will be converted to a string before matching (<code>&quot;null&quot;</code> if it is <code>null</code>).
</p></div><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent">AnyRef, <span name="scala.Any" class="extype">Any</span></div>
        </div></div>
        

      <div id="template">

        <div id="mbrsel">
          <div id="textfilter"><span class="pre"></span><span class="input"><input accesskey="/" type="text" /></span><span class="post"></span></div>
          <div id="order">
                <span class="filtertype">Ordering</span>
                <ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
              </div>
          <div id="ancestors">
                <span class="filtertype">Inherited</span>
                <ol><li class="hideall out"><span>Hide All</span></li>
                <li class="showall in"><span>Show all</span></li></ol>
                <ol id="linearization"><li name="akka.testkit.EventFilter" class="in"><span>EventFilter</span></li><li name="scala.AnyRef" class="in"><span>AnyRef</span></li><li name="scala.Any" class="in"><span>Any</span></li></ol>
              </div>
          <div id="visbl">
              <span class="filtertype">Visibility</span>
              <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
            </div>
        </div>

        

        

        

        <div class="values members" id="values">
              <h3>Value Members</h3>
              <ol><li visbl="pub" name="scala.AnyRef#!=" data-isabs="false">
      <a id="!=(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#!=" data-isabs="false">
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef###" data-isabs="false">
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">##</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#==" data-isabs="false">
      <a id="==(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#==" data-isabs="false">
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="akka.testkit.EventFilter#apply" data-isabs="false">
      <a id="apply[A&lt;:Throwable](String,String,String,String,Int)(Manifest[A]):EventFilter"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">apply</span>
        <span class="tparams">[<span name="A">A &lt;: Throwable</span>]</span>
        <span class="params">(<span name="message">message: String = <span class="symbol">null</span></span>, <span name="source">source: String = <span class="symbol">null</span></span>, <span name="start">start: String = <span class="symbol">&quot;&quot;</span></span>, <span name="pattern">pattern: String = <span class="symbol">null</span></span>, <span name="occurrences">occurrences: <span name="scala.Int" class="extype">Int</span> = <span class="symbol"><span class="name"><a href="../../scala/package.html">Int.MaxValue</a></span></span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: Manifest[A]</span>)</span><span class="result">: <a name="akka.testkit.EventFilter" class="extype" href="EventFilter.html">EventFilter</a></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Create a filter for Error events.</p><div class="fullcomment"><div class="comment cmt"><p>Create a filter for Error events. Give up to one of <code>start</code> and <code>pattern</code>:</p><pre>
EventFilter[MyException]()                                         // filter only on exception type
EventFilter[MyException](&quot;message&quot;)                                // filter on exactly matching message
EventFilter[MyException](source = obj)                             // filter on event source
EventFilter[MyException](start = &quot;Expected&quot;)                       // filter on start of message
EventFilter[MyException](source = obj, pattern = &quot;weird.*message&quot;) // filter on pattern and message
</pre><p><i>Please note that filtering on the <code>source</code> being
<code>null</code> does NOT work (passing <code>null</code> disables the
source filter).</i>
</p></div></div>
    </li><li visbl="pub" name="scala.Any#asInstanceOf" data-isabs="false">
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">asInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="prt" name="scala.AnyRef#clone" data-isabs="false">
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">clone</span>
        
        <span class="params">()</span><span class="result">: AnyRef</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="akka.testkit.EventFilter#custom" data-isabs="false">
      <a id="custom(PartialFunction[LogEvent, Boolean],Int):EventFilter"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">custom</span>
        
        <span class="params">(<span name="test">test: <span name="scala.PartialFunction" class="extype">PartialFunction</span>[<a name="akka.event.Logging.LogEvent" class="extype" href="../event/Logging$$LogEvent.html">LogEvent</a>, <span name="scala.Boolean" class="extype">Boolean</span>]</span>, <span name="occurrences">occurrences: <span name="scala.Int" class="extype">Int</span> = <span class="symbol"><span class="name"><a href="../../scala/package.html">Int.MaxValue</a></span></span></span>)</span><span class="result">: <a name="akka.testkit.EventFilter" class="extype" href="EventFilter.html">EventFilter</a></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Create a custom event filter.</p><div class="fullcomment"><div class="comment cmt"><p>Create a custom event filter. The filter will affect those events for
which the supplied partial function is defined and returns
<code>true</code>.</p><pre>
EventFilter.custom {
  case Warning(ref, &quot;my warning&quot;) if ref == actor || ref == null =&gt; true
}
</pre></div></div>
    </li><li visbl="pub" name="akka.testkit.EventFilter#debug" data-isabs="false">
      <a id="debug(String,String,String,String,Int):EventFilter"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">debug</span>
        
        <span class="params">(<span name="message">message: String = <span class="symbol">null</span></span>, <span name="source">source: String = <span class="symbol">null</span></span>, <span name="start">start: String = <span class="symbol">&quot;&quot;</span></span>, <span name="pattern">pattern: String = <span class="symbol">null</span></span>, <span name="occurrences">occurrences: <span name="scala.Int" class="extype">Int</span> = <span class="symbol"><span class="name"><a href="../../scala/package.html">Int.MaxValue</a></span></span></span>)</span><span class="result">: <a name="akka.testkit.EventFilter" class="extype" href="EventFilter.html">EventFilter</a></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Create a filter for Debug events.</p><div class="fullcomment"><div class="comment cmt"><p>Create a filter for Debug events. Give up to one of <code>start</code> and <code>pattern</code>:</p><pre>
EventFilter.debug()                                         // filter only on exception type
EventFilter.debug(source = obj)                             // filter on event source
EventFilter.debug(start = &quot;Expected&quot;)                       // filter on start of message
EventFilter.debug(source = obj, pattern = &quot;weird.*message&quot;) // filter on pattern and message
</pre><p><i>Please note that filtering on the <code>source</code> being
<code>null</code> does NOT work (passing <code>null</code> disables the
source filter).</i>
</p></div></div>
    </li><li visbl="pub" name="scala.AnyRef#eq" data-isabs="false">
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">eq</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#equals" data-isabs="false">
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">equals</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="akka.testkit.EventFilter#error" data-isabs="false">
      <a id="error(String,String,String,String,Int):EventFilter"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">error</span>
        
        <span class="params">(<span name="message">message: String = <span class="symbol">null</span></span>, <span name="source">source: String = <span class="symbol">null</span></span>, <span name="start">start: String = <span class="symbol">&quot;&quot;</span></span>, <span name="pattern">pattern: String = <span class="symbol">null</span></span>, <span name="occurrences">occurrences: <span name="scala.Int" class="extype">Int</span> = <span class="symbol"><span class="name"><a href="../../scala/package.html">Int.MaxValue</a></span></span></span>)</span><span class="result">: <a name="akka.testkit.EventFilter" class="extype" href="EventFilter.html">EventFilter</a></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Create a filter for Error events which do not have a cause set (i.</p><div class="fullcomment"><div class="comment cmt"><p>Create a filter for Error events which do not have a cause set (i.e. use
implicitly supplied Logging.Error.NoCause). See apply() for more details.
</p></div></div>
    </li><li visbl="prt" name="scala.AnyRef#finalize" data-isabs="false">
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">finalize</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#getClass" data-isabs="false">
      <a id="getClass():java.lang.Class[_]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">getClass</span>
        
        <span class="params">()</span><span class="result">: java.lang.Class[_]</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#hashCode" data-isabs="false">
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">hashCode</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="akka.testkit.EventFilter#info" data-isabs="false">
      <a id="info(String,String,String,String,Int):EventFilter"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">info</span>
        
        <span class="params">(<span name="message">message: String = <span class="symbol">null</span></span>, <span name="source">source: String = <span class="symbol">null</span></span>, <span name="start">start: String = <span class="symbol">&quot;&quot;</span></span>, <span name="pattern">pattern: String = <span class="symbol">null</span></span>, <span name="occurrences">occurrences: <span name="scala.Int" class="extype">Int</span> = <span class="symbol"><span class="name"><a href="../../scala/package.html">Int.MaxValue</a></span></span></span>)</span><span class="result">: <a name="akka.testkit.EventFilter" class="extype" href="EventFilter.html">EventFilter</a></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Create a filter for Info events.</p><div class="fullcomment"><div class="comment cmt"><p>Create a filter for Info events. Give up to one of <code>start</code> and <code>pattern</code>:</p><pre>
EventFilter.info()                                         // filter only on exception type
EventFilter.info(source = obj)                             // filter on event source
EventFilter.info(start = &quot;Expected&quot;)                       // filter on start of message
EventFilter.info(source = obj, pattern = &quot;weird.*message&quot;) // filter on pattern and message
</pre><p><i>Please note that filtering on the <code>source</code> being
<code>null</code> does NOT work (passing <code>null</code> disables the
source filter).</i>
</p></div></div>
    </li><li visbl="pub" name="scala.Any#isInstanceOf" data-isabs="false">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">isInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#ne" data-isabs="false">
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">ne</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notify" data-isabs="false">
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">notify</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notifyAll" data-isabs="false">
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">notifyAll</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#synchronized" data-isabs="false">
      <a id="synchronized[T0](⇒ T0):T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">synchronized</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="params">(<span name="arg0">arg0: ⇒ T0</span>)</span><span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#toString" data-isabs="false">
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">toString</span>
        
        <span class="params">()</span><span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>, <span name="arg1">arg1: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="akka.testkit.EventFilter#warning" data-isabs="false">
      <a id="warning(String,String,String,String,Int):EventFilter"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">warning</span>
        
        <span class="params">(<span name="message">message: String = <span class="symbol">null</span></span>, <span name="source">source: String = <span class="symbol">null</span></span>, <span name="start">start: String = <span class="symbol">&quot;&quot;</span></span>, <span name="pattern">pattern: String = <span class="symbol">null</span></span>, <span name="occurrences">occurrences: <span name="scala.Int" class="extype">Int</span> = <span class="symbol"><span class="name"><a href="../../scala/package.html">Int.MaxValue</a></span></span></span>)</span><span class="result">: <a name="akka.testkit.EventFilter" class="extype" href="EventFilter.html">EventFilter</a></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Create a filter for Warning events.</p><div class="fullcomment"><div class="comment cmt"><p>Create a filter for Warning events. Give up to one of <code>start</code> and <code>pattern</code>:</p><pre>
EventFilter.warning()                                         // filter only on exception type
EventFilter.warning(source = obj)                             // filter on event source
EventFilter.warning(start = &quot;Expected&quot;)                       // filter on start of message
EventFilter.warning(source = obj, pattern = &quot;weird.*message&quot;) // filter on pattern and message
</pre><p><i>Please note that filtering on the <code>source</code> being
<code>null</code> does NOT work (passing <code>null</code> disables the
source filter).</i>
</p></div></div>
    </li></ol>
            </div>

        

        <div name="scala.AnyRef" class="parent">
              <h3>Inherited from AnyRef</h3>
            </div><div name="scala.Any" class="parent">
              <h3>Inherited from <span name="scala.Any" class="extype">Any</span></h3>
            </div>

      </div>

      <div id="tooltip"></div>

    </body>
      </html>